package com.dragon.pear.pages.tab.main.mine;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

/**
 * @author Chris Chan
 * Create on: 2025-02-05 02:02
 * Use for: Mine 数据中心
 * Explain:
 */
public class MineViewModel extends ViewModel {
    // 示例数据
    private MutableLiveData<String> info;
    private MutableLiveData<String> username;
    private MutableLiveData<Integer> dataSize;

    // 构造方法
    public MineViewModel() {
        info = new MutableLiveData<>();
        username = new MutableLiveData<>();
        dataSize = new MutableLiveData<>();
        setInfo("测试");
    }

    // 示例数据读取
    public MutableLiveData<String> getInfo() {
        return info;
    }

    // 示例数据赋值
    public void setInfo(String info) {
        this.info.setValue(info);
    }

    public MutableLiveData<String> getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username.setValue(username);
    }

    public MutableLiveData<Integer> getDataSize() {
        return dataSize;
    }

    public void setDataSize(Integer dataSize) {
        this.dataSize.setValue(dataSize);
    }
}
